/**
 * 
 */
package com.pcbly.web.business.chart;

import java.util.List;

import com.pcbly.web.bean.chart.ChartDefinitionBean;
import com.pcbly.web.business.BaseServiceImp;
import com.pcbly.web.persistence.chart.ChartDefinitionDao;

/**
 * @author Administrator
 * @date 2009-7-13
 * @copyright lightsoft
 */
public class ChartDefinitionServiceImp extends
		BaseServiceImp<ChartDefinitionBean> implements ChartDefinitionService {

	public ChartDefinitionServiceImp(){
		super();
	}
	protected ChartDefinitionDao chartDefinitionDao;
	
	
	public void setChartDefinitionDao(ChartDefinitionDao chartDefinitionDao) {
		this.chartDefinitionDao = chartDefinitionDao;
	}

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub

	}

	@Override
	public int deleteChartDefinitionBean(String id) throws Exception {
		// TODO Auto-generated method stub
		return chartDefinitionDao.deleteChartDefinitionBean(id);
	}

	@Override
	public int insertChartDefinitionBean(ChartDefinitionBean bean)
			throws Exception {
		// TODO Auto-generated method stub
		return chartDefinitionDao.insertChartDefinitionBean(bean);
	}

	@Override
	public ChartDefinitionBean queryChartDefinitionBeanById(String id)
			throws Exception {
		// TODO Auto-generated method stub
		return chartDefinitionDao.queryChartDefinitionBeanById(id);
	}

	@Override
	public List<ChartDefinitionBean> queryList() throws Exception {
		// TODO Auto-generated method stub
		return chartDefinitionDao.queryList();
	}

	@Override
	public int updateChartDefinitionBean(ChartDefinitionBean bean)
			throws Exception {
		// TODO Auto-generated method stub
		return chartDefinitionDao.updateChartDefinitionBean(bean);
	}


}
